<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>表单布局</title>
		<link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap.min.css"/>
	</head>
	<body>
		<!-- 水平表单布局 -->
		<form action="#" class="form-horizontal" role="form">
			<h2 class="text-center">用户信息表</h2>
			<!-- 表单中的表单元素 -->
			<div class="form-group">
				<label for="uname" class="control-label col-md-2">姓名</label>
				<div class="col-md-8">
					<input id="uname" type="text" class="form-control" placeholder="请输入姓名" />
				</div>
			</div>
			<div class="form-group">
				<label for="upwd" class="control-label col-md-2">密码</label>
				<div class="col-md-8">
					<input id="upwd" type="text" class="form-control" placeholder="请输入密码" />
				</div>
			</div>
		</form>
	</body>
</html>
